x1 = (pow(2,4)+7-3*4)/5
x2 = (1+pow(3,2))*(16 % 7)/7
print(x1)
print("{:.2f}".format(x2))